# pip install bs4

import requests
from bs4 import BeautifulSoup

url = "http://www.xinfadi.com.cn/getCat.html"
headers = {
    "accept": "*/*",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
    "x-requested-with": "XMLHttpRequest"
}
res = requests.post(url,headers=headers)
print(res.text)

# page = BeautifulSoup(res.text,"html.parser")
# table = page.find("table",class_="ulTableBody")
# print(table)